#ifndef  _TREEWIDGET_CCSCENE_H
#define _TREEWIDGET_CCSCENE_H


#include "QtGui"
#include "cocos2d.h"
#include "qtcoco\CocoHieriachy.h"
using namespace cocos2d;

class TreeWidget_CCScene :public QTreeWidget
{
    Q_OBJECT
    
public:
    
    TreeWidget_CCScene(QWidget *);
    ~TreeWidget_CCScene(){}
    

public slots:
    void showMenu();
    void SlotItemClicked(QTreeWidgetItem *, int);
     
    void menu_ItemDelete();
	void menuItemAction_addToRoot(QAction *action);
	QCocoNode * addNode(QCocoNode node , QTreeWidgetItem * parentItem, CCNode * parentNode);
	void menuItemAction_childOperation(QAction *action );
	void findChildren(QTreeWidgetItem * parentItem );
	void clearWorkSpace();
	void itemClearOperation(QTreeWidgetItem * item  , QTreeWidgetItem * parentItem);
};


#endif
